/* pts12Animation.h
 *
 * --
 * Copyright (c) 2012, Christophe Huriaux
 * Distributed under the terms of the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 * --
 */

#ifndef MCPACKET_pts12_H
#define MCPACKET_pts12_H

#include <string>
#include <iostream>
#include <stdint.h>
#include <vector>
#include <packet/McPacket.h>

class pts12Animation : public McPacketToServer
{
    int32_t entityId;
    int8_t animationId;

public:
    pts12Animation(int32_t entityId, int8_t animationId);
    pts12Animation();

    void forge(std::ostream& out);
    unsigned int length();

    int32_t getEntityId();
    int8_t getAnimationId();

    void setEntityId(int32_t entityId);
    void setAnimationId(int8_t animationId);
};

#endif // MCPACKET_pts12_H
